From: Rui Matos Date: Thu, 5 Apr 2012 13:48:30 +0000 (+0200) Subject: searchDisplay: Update the selection for async searches without results X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6690 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=168e9eeac123d608316cb33a2acd7cdebf5f30a7;p=gnome-shell.git searchDisplay: Update the selection for async searches without results This ensures that the initial selection is always set correctly. We were missing the empty async search results case. https://bugzilla.gnome.org/show_bug.cgi?id=673233 --- diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index aeb6cf794..3c16e5656 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -407,6 +407,7 @@ const SearchResults = new Lang.Class({ meta.resultDisplay.renderResults(metas); } } + this._maybeSetInitialSelection(); }, _updateResults: function(searchSystem, results) { @@ -433,7 +434,6 @@ const SearchResults = new Lang.Class({ this._updateProviderResults(provider, providerResults, terms); } - this._maybeSetInitialSelection(); this._content.show(); return true;